import Layout from '@/layout'

const teacherRouter = {
  path: '/teacher',
  component: Layout,
  redirect: '/teacher/table',
  name: 'Teacher',
  meta: {
    title: '讲师管理',
    icon: 'teacher'
  },
  children: [
    {
      path: 'table',
      component: () => import('@/views/teacher/table'),
      name: 'TeacherTable',
      meta: { title: '讲师列表', icon: 'user-tie', noCache: false }
    },
    {
      path: 'create',
      component: () => import('@/views/teacher/form'),
      name: 'TeacherCreate',
      meta: { title: '新增讲师', icon: 'add-person', noCache: false }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/teacher/form'),
      name: 'TeacherEdit',
      meta: { title: '编辑讲师', noCache: false },
      hidden: true
    }
  ]
}

export default teacherRouter

